Page({
  data: {
    detail: {},
  },

  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.detail.id,
    })
  },

  async onShow() {
    const res = await wx.http({
      url: '/room/' + this.options.id,
    })
    this.setData({ detail: res.data })
  },
})
